/**
 * Created by jiangtao on 2017/6/1.
 */


import React , { Component } from 'react';

import './../../styles/mobile/main.scss';

import Header from './header';

import connect from './../../redux/connect';

import CustomLink from './../../components/CustomLink';

import CustomRouter from './../../components/CustomRouter';

class Index extends Component {
    render(){
        const { homeReducer , routes } = this.props;
        const { tabs } = homeReducer;
        return(
            <div data-id="index-page">
                <Header />
                <CustomRouter routers={routes} />
            </div>
        )
    }
}

export default connect({
    reducers:{
        homeReducer:"home"
    }
})(Index);